<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=0, viewport-fit=cover" />
	<title>obj1</title>
</head>
<body>

<script>
const a = 1;
const obj1 = {
	name : 'wgm',
	age  : 18,
	likes: ['node', 'koa', 'js', 'react', { className: '2004A' }]
}

const obj2 = { ...obj1, likes: [...obj1.likes] }

// const obj2 = obj1;

obj1.age = 28
obj1.likes.push('egg')

console.log(`obj2-------`, obj2)




</script>
</body>
</html>
